import React, {createContext, useState} from "react";
import {getToken} from "../request/auth";


export const context = createContext({});

const AuthProvider = ({children}: any) => {


    const token = getToken();
    return <context.Provider value={{token}}>{children}</context.Provider>;
};

export default AuthProvider;


